/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_4;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Administrator
 */
class Clothes {
    String color;
    char size;
    
    Clothes (String color,char size) {
        this.color = color;
        this.size = size;
    }
}

public class Field {
    
    //public static void main (String[] args) {
    public static void main () {
        //定义构造函数
        Clothes sun = new Clothes("red", 'S');
        Clothes spring = new Clothes("green", 'M');
        
//        sun.color = "red";
//        sun.size = 'S';
//        
//        spring.color = "green";
//        spring.size = 'M';
        
        System.out.printf("sun (%s, %c) %n", sun.color, sun.size);
        System.out.printf("spring (%s, %c) %n", spring.color, spring.size);
          
    }
    

    
}
